<?php
/**
 * @package WordPress
 * @subpackage APrints_Theme
 */

get_header();
?>

	<div id="content" class="widecolumn" role="main">

	<?php if (have_posts()) : while (have_posts()) : the_post(); ?>

		<div <?php post_class() ?> id="post-<?php the_ID(); ?>">
			<h2><?php the_title(); ?></h2>

			<div class="entry">
				<?php the_content('<p class="serif">Read the rest of this entry &raquo;</p>'); ?>

				<?php wp_link_pages(array('before' => '<p><strong>Pages:</strong> ', 'after' => '</p>', 'next_or_number' => 'number')); ?>
				<hr/>

				<p class="postmetadata alt">
					<small>
						This entry was posted by <?php the_author(); ?> 
						on <?php the_time('l, F jS, Y') ?> at <?php the_time() ?>
						in the Blog: <?php the_category(', ') ?>.
						<br/>
						<?php the_tags( '<p>Tags: ', ', ', '</p>'); ?>
						<?php if(function_exists("arpr_get_ori_link")){
							$url = arpr_get_ori_link($post->ID);
							echo "<p>Original link: <a title='Original post link' href='".$url."'>".$url."</a></p>";
						} ?>
						<?php if(function_exists("arpr_get_fetch_date")){
							echo "<p>Fetched on ".mysql2date('l, F jS, Y',arpr_get_fetch_date($post->ID))."</p>";
						} ?>						
					</small>
				</p>

			</div>
		</div>

	<?php  comments_template(); endwhile;else: ?>

		<p>Sorry, no posts matched your criteria.</p>

<?php endif; ?>

	</div>

<?php get_footer(); ?>
